﻿{include file="public/header"}

<?php if(!empty($data)){?>
{volist name='data' id='v'}
<div style="padding: 0 10px;">
<div class="ch-row ch-info-form">
    <div class="flex1">
        {:date('Y-m-d H:i:s',$v.created_at)}
    </div>
</div>
    <div class="ch-row ch-info-form">
        <div class="flex1">
            {$v.username}
        </div>
    </div>
<div class="ch-row ch-info-form">
    <div class="flex1">
        {$v.title}
    </div>
</div>
<div class="ch-row ch-info-form">
    <div class="flex1">
        {$v.describe}
    </div>
</div>
<div class="ch-row ch-info-form ch-wrap">
{volist name='v["resource"]' id='v'}

<?php if(strpos($v['mime_type'],'image') ===false){ ?>
    <div class="flex1 " style="margin: 0 5px 5px 0;">
        <video width="200" height="104" controls="controls">
            <source src="{$v.domain}{$v.path}" type="video/mp4"/>
        </video>
    </div>



<?php } else{?>
    <div class="flex1" style="margin: 0 5px 5px 0;">
        <img src="{$v.domain}{$v.path}" style="max-width: 200px;">

</div>
    <?php } ?>
    {/volist}
</div>
    {/volist}
    <?php }else{?>

    <div style="color: red;text-align: center;margin-top:25% ">此订单暂无验收记录</div>
    <?php }?>
</div>
    {include file="public/footer"}